package com.matt.domain.courseV2;

import com.matt.commons.model.Domain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 月报模板
 */
@Entity
@EqualsAndHashCode(callSuper = true)
@Table(name = "tc_children_month_record")
@Data
public class ChildrenMonthRecord extends Domain implements Serializable {


    @Column(columnDefinition = "varchar(32)   COMMENT '宝宝ID' ")
    private String childrenId;

    @Column(columnDefinition = "int(3)   COMMENT '宝宝月龄' ")
    private Integer childrenMonth;

    @Column(columnDefinition = "varchar(32)   COMMENT '园区ID' ")
    private String  areaId;

    //模板内容，用来存放一段 JSON，用以描述字段名称。 月报首页
    //[{"name":"教学目标"，"type":"text"}, {"name":"教学内容", "type":"richtext"}, {"name":"扩展资源", "type":"attachments"}]
    @Column(columnDefinition = "text    COMMENT  '模板内容' ")
    private String content;


    @Column(columnDefinition = "varchar(32)  COMMENT '创建人'")
    private String createdBy;

    @Column(columnDefinition = "varchar(255)  COMMENT '创建人名称'")
    private String createdName;

    @Column(columnDefinition = " varchar(255)  COMMENT '备注'")
    private String remark;
}